package entity;

import org.springframework.stereotype.Component;

@Component
public class User {
    //实体类的属性和表的字段名称一一对应
    String userId;
    String name;
    int type;
    String passWord;
    String userInformationId;
    String icon;

    //getter和setter…
    @Override
    public String toString() {
        return "User [userId=" + userId + ", name=" + name + ", passWord=" + passWord + "]";
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getUserInformationId() {
        return userInformationId;
    }

    public void setUserInformationId(String userInformationId) {
        this.userInformationId = userInformationId;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
}
